"""

@Time: 2021/5/30 19:01
@Author:
@File: __init__.py.py
"""

from pydantic import BaseSettings
from typing import List, Dict, Any
from .dev import *  # 根据不同的启动环境，可以选择从不同的 .py 中导入配置数据


class ElasticsearchConfig(BaseSettings):
    """Elasticsearch的相关配置"""
    HOSTS: List[str] = ['121.37.133.0:18400', ]
    TIMEOUT: int = 200
    KWARGS: Dict[str, Any] = {}

    SECURITY_LOG_INDEX_PREFIX = 'security_log_'
    OS_LOG_INDEX_PREFIX = 'os_log_'


es_conf = ElasticsearchConfig()
